package com.tj.bo.common.conf.constant;

/**
 * Created with IntelliJ IDEA.
 * User: binary
 * Date: 2020/6/9
 * Time: 下午5:47
 */
public class RedisKey {

    public static final String PASSWORD_RESET_KEY = "PASSWORD_RESET_{resetPasswordToken}";

    /**
     * 验证码Redis Key前缀
     */
    public static final String VERIFY_CODE_REDIS_KEY_PREFIX = "VERIFY_CODE_REDIS_KEY_PREFIX_{mobile}";

    /**
     * 验证码Redis Key前缀 sign 邮箱验证码
     */
    public static final String SIGN_EMAIL_VERIFY_CODE_REDIS_KEY_PREFIX = "SIGN_EMAIL_VERIFY_CODE_REDIS_KEY_PREFIX_{email}";
    public static final String SEND_EMAIL_CODE_MULTIPLY_LIMIT = "send_email_code_multiply_limit_{email}";


    public static final String SUBMIT_ORDER_FREQUENCY_FAST_KEY = "SUBMIT_ORDER_FREQUENCY_FAST_KEY_{userCode}";
    public static final String BINARY_OPTION_PRODUCT_KEY = "BINARY_OPTION_PRODUCT_{productCode}";

    //1秒最多一条记录的key
    public static final String BINARY_OPTION_PRODUCT_SHOW_KEY = "BINARY_OPTION_PRODUCT_SHOW_{productCode}";

    public static final String ZSET_BINARY_OPTION_PRODUCT_KEY = "ZSET_BINARY_OPTION_PRODUCT_{productCode}";

    /**
     * 用户产品收益率
     */
    public static final String BINARY_OPTION_PRODUCT_USER_ODDS = "BINARY_OPTION_PRODUCT_USER_ODDS_{productCode}_{UserCode}";
    /**
     * 产品信息缓存
     */
    public static final String BINARY_OPTION_PRODUCT_CACHE_KEY = "BINARY_OPTION_PRODUCT_CACHE_KEY2234";

    public static final String BINARY_OPTION_PRODUCT_ODDS_CONFIG_KEY = "BINARY_OPTION_PRODUCT_ODDS_CONFIG_KEY";

    public static final String BINARY_OPTION_REAL_TRADE_PUSH = "BINARY_OPTION_REAL_TRADE_PUSH_{userCode}";

    public static final String BINARY_OPTION_INVITE_FRIEND_BONUS_KEY = "BINARY_OPTION_INVITE_FRIEND_BONUS_KEY_{userCode}";

    public static final String BINARY_OPTION_VISITOR_TRADE_NUMBERS = "BINARY_OPTION_VISITOR_TRADE_NUMBERS_{userCode}";

    public static final String BINARY_OPTION_FIRST_DEPOSIT_GRANTS = "BINARY_OPTION_FIRST_DEPOSIT_GRANTS_{userCode}";

    /**
     * pl计算队列
     */
    public static final String BINARY_OPTION_ODDS_CALC_LIST = "BINARY_OPTION_ODDS_CALC_LIST";

    public static final String BINARY_OPTION_HAS_DEPOSIT_RECORD = "BINARY_OPTION_HAS_DEPOSIT_RECORD_{userCode}";

    public static final String BINARY_OPTION_LOGIN_ERROR_PERMIT_TIMES = "BINARY_OPTION_LOGIN_ERROR_PERMIT_TIMES_{accountName}_{Date}";

    public static final String BINARY_OPTION_GREY_USER = "BINARY_OPTION_GREY_USER_{userCode}";
    /**
     * 结算价缓存
     */
    public static final String BINARY_OPTION_SETTLEMENT_KEY = "BINARY_OPTION_SETTLEMENT_{tradeNo}";

    /**
     * 延迟结算订单
     */
    public static final String BINARY_OPTION_SETTLEMENT_ORDER_KEY = "BINARY_OPTION_SETTLEMENT_ORDER";
}
